package com.delos.rbac;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.util.StopWatch;

/**
 * 权限管理系统启动类
 *
 * @author zouyaowen
 * @date 2020-06-15
 */
@SpringBootApplication
@Slf4j
public class StartAccessApplication {
    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch("StartAccessApplication");
        stopWatch.start("Access Application");
        SpringApplication.run(StartAccessApplication.class, args);
        stopWatch.stop();
        log.info("启动耗时={}秒", stopWatch.getTotalTimeSeconds());
        log.info(stopWatch.prettyPrint());
    }
}
